#!/usr/bin/env python
# -*-coding:utf-8 -*-
def pytest_collection_modifyitems(items):
    """
        解决参数化 ids 用例描述为中文时控制台输出unicode编码问题
    :return:
    """
    for item in items:
        item.name = item.name.encode("utf-8").decode("unicode_escape")
        item._nodeid = item.nodeid.encode("utf-8").decode("unicode_escape")